package com.dci.config;

import com.dci.util.HttpInterceptorUtil;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * All rights Reserved, Designed By www.chinadci.com
 *
 * @version V1.0
 * @Title: null.java
 * @Package com.dci.config
 * @Description: 拦截器配置类
 * @author: dci-许高峰
 * @date: 2018/12/23 12:23
 * @Copyright: 2018 www.chinadci.com. All rights reserved.
 * 注意：本内容仅限于广州城市信息研究所南京分公司内部传阅，禁止外泄以及用于其他的商业目
 */
@Configuration
public class HttpInterceptor implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new HttpInterceptorUtil()).addPathPatterns("/*");
    }
}
